.class public Lcom/openfeint/api/OpenFeint;
.super Ljava/lang/Object;
.source "OpenFeint.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getCurrentUser()Lcom/openfeint/api/resource/CurrentUser;
    .locals 1

    .prologue
    .line 23
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0}, Lcom/openfeint/internal/OpenFeintInternal;->getCurrentUser()Lcom/openfeint/api/resource/CurrentUser;

    move-result-object v0

    return-object v0
.end method

.method public static initialize(Landroid/content/Context;Lcom/openfeint/api/OpenFeintSettings;Lcom/openfeint/api/OpenFeintDelegate;)V
    .locals 0
    .parameter "ctx"
    .parameter "settings"
    .parameter "delegate"

    .prologue
    .line 40
    invoke-static {p0, p1, p2}, Lcom/openfeint/internal/OpenFeintInternal;->initialize(Landroid/content/Context;Lcom/openfeint/api/OpenFeintSettings;Lcom/openfeint/api/OpenFeintDelegate;)V

    .line 41
    return-void
.end method

.method public static initializeWithoutLoggingIn(Landroid/content/Context;Lcom/openfeint/api/OpenFeintSettings;Lcom/openfeint/api/OpenFeintDelegate;)V
    .locals 0
    .parameter "ctx"
    .parameter "settings"
    .parameter "delegate"

    .prologue
    .line 53
    invoke-static {p0, p1, p2}, Lcom/openfeint/internal/OpenFeintInternal;->initializeWithoutLoggingIn(Landroid/content/Context;Lcom/openfeint/api/OpenFeintSettings;Lcom/openfeint/api/OpenFeintDelegate;)V

    .line 54
    return-void
.end method

.method public static isNetworkConnected()Z
    .locals 1

    .prologue
    .line 85
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0}, Lcom/openfeint/internal/OpenFeintInternal;->isFeintServerReachable()Z

    move-result v0

    return v0
.end method

.method public static isUserLoggedIn()Z
    .locals 1

    .prologue
    .line 29
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0}, Lcom/openfeint/internal/OpenFeintInternal;->isUserLoggedIn()Z

    move-result v0

    return v0
.end method

.method public static login()V
    .locals 2

    .prologue
    .line 77
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/openfeint/internal/OpenFeintInternal;->login(Z)V

    .line 78
    return-void
.end method

.method public static logoutUser()V
    .locals 2

    .prologue
    .line 108
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/openfeint/internal/OpenFeintInternal;->logoutUser(Lcom/openfeint/internal/request/IRawRequestDelegate;)V

    .line 109
    return-void
.end method

.method public static setDelegate(Lcom/openfeint/api/OpenFeintDelegate;)V
    .locals 1
    .parameter "delegate"

    .prologue
    .line 69
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/openfeint/internal/OpenFeintInternal;->setDelegate(Lcom/openfeint/api/OpenFeintDelegate;)V

    .line 70
    return-void
.end method

.method public static trySubmitOfflineData()V
    .locals 0

    .prologue
    .line 120
    invoke-static {}, Lcom/openfeint/internal/offline/OfflineSupport;->trySubmitOfflineData()V

    .line 121
    return-void
.end method

.method public static userApprovedFeint()V
    .locals 1

    .prologue
    .line 93
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0}, Lcom/openfeint/internal/OpenFeintInternal;->userApprovedFeint()V

    .line 94
    return-void
.end method

.method public static userDeclinedFeint()V
    .locals 1

    .prologue
    .line 101
    invoke-static {}, Lcom/openfeint/internal/OpenFeintInternal;->getInstance()Lcom/openfeint/internal/OpenFeintInternal;

    move-result-object v0

    invoke-virtual {v0}, Lcom/openfeint/internal/OpenFeintInternal;->userDeclinedFeint()V

    .line 102
    return-void
.end method
